<?php echo $this->Session->flash(); ?>


<legend>REPRESENTANTE LEGAL</legend>
<table  id="tabla" class="tabla" >
    <thead>
        <tr>
            <th>Nombres</th>
            <th>Apellidos</th>
            <th>Nombre</th>
            <th colspan="3">Cedula</th>
        </tr>
    </thead>
    <tbody>
        <?php foreach ($representatives as $rep): ?>
            <?php var_dump($rep) ?>
            <tr>
                <td><?php echo $rep['Representative']['nombres'] ?></td>
                <td><?php echo $rep['Representative']['apellidos'] ?></td>
                <td><?php echo $rep['Representative']['cedula'] ?></td>
                <td></td>
                <td></td>
                <td></td>

            </tr>
        <?php endforeach; ?>
    </tbody>
</table>

<?php echo $ajax->link("Agregar Representante legal", array('controller' => 'Representatives', "action" => "add/$id"), array('update' => 'content', 'complete' => 'cargar()')) ?>





